home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Resources / Chat & Communication / Digsby build 37 / digsby_setup.exe / lib / dummy_threading.pyo (.txt) < prev    next >
Python Compiled Bytecode  |  2008-10-13  |  900b  |  53 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyo (Python 2.5)
  3.  
  4. from sys import modules as sys_modules
  5. import dummy_thread
  6. holding_thread = False
  7. holding_threading = False
  8. holding__threading_local = False
  9.  
  10. try:
  11.     if 'thread' in sys_modules:
  12.         held_thread = sys_modules['thread']
  13.         holding_thread = True
  14.     
  15.     sys_modules['thread'] = sys_modules['dummy_thread']
  16.     if 'threading' in sys_modules:
  17.         held_threading = sys_modules['threading']
  18.         holding_threading = True
  19.         del sys_modules['threading']
  20.     
  21.     if '_threading_local' in sys_modules:
  22.         held__threading_local = sys_modules['_threading_local']
  23.         holding__threading_local = True
  24.         del sys_modules['_threading_local']
  25.     
  26.     import threading
  27.     sys_modules['_dummy_threading'] = sys_modules['threading']
  28.     del sys_modules['threading']
  29.     sys_modules['_dummy__threading_local'] = sys_modules['_threading_local']
  30.     del sys_modules['_threading_local']
  31.     from _dummy_threading import *
  32.     from _dummy_threading import __all__
  33. finally:
  34.     if holding_threading:
  35.         sys_modules['threading'] = held_threading
  36.         del held_threading
  37.     
  38.     del holding_threading
  39.     if holding__threading_local:
  40.         sys_modules['_threading_local'] = held__threading_local
  41.         del held__threading_local
  42.     
  43.     del holding__threading_local
  44.     if holding_thread:
  45.         sys_modules['thread'] = held_thread
  46.         del held_thread
  47.     else:
  48.         del sys_modules['thread']
  49.     del holding_thread
  50.     del dummy_thread
  51.     del sys_modules
  52.  
  53.